<template>
  <router-view v-slot="{ Component, route }">
    <component v-if="!route.keepAlive" :is="Component" />
    <keep-alive v-else>
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script>
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'App',
});
</script>
